Skip to content

fix(messaging): deliver single ~/.scion/inbox attachment for artifact-backed messages - #9731

Closed
ptone wants to merge 1 commit into
mainfrom
scion/art-9694-single-inbox-attachment
Closed

ptone wants to merge 1 commit into
mainfrom
scion/art-9694-single-inbox-attachment

Conversation

@ptone

@ptone ptone commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Closes #9694.

  • Stop copying artifact-backed (ref.artifact) web chat attachments to scratchpad in stageChatAttachments (pkg/hub/handlers_chat_v2.go), fixing the ON->OFF experiment toggle double-listing edge case.
  • Remove stageArtifactAttachment, errNoAttachmentStaging, artifacts.Service.OpenBoundAttachment, applyProjection, AttachmentProjectedLine, and ProjectedPath/ProjectedMount from AttachmentRef, messages.AttachmentDelivery, and messages.AttachmentPlanEntry.
  • Keep legacy (!ref.artifact) scratchpad staging and attachment_mounts intact for ptone/scion#4602; drop the scratchpad fallback for old brokers lacking Capabilities.AttachmentDelivery.
  • Update experiment description, docs, and unit/hub tests.

…essages

Stop copying artifact-backed web chat attachments into the project
scratchpad in project-topic and native project-group threads so that
delivered messages list each attachment once at ~/.scion/inbox/<msg-id>/<name>,
with no duplicate scratchpad path, no attachment_mounts entry, and no
'also visible to sibling agents' body note (#9694).

- Skip ref.artifact entries in stageChatAttachments (also fixing the
  ON->OFF experiment toggle double-listing edge case) and drop its
  unused messageID parameter.
- Remove stageArtifactAttachment, errNoAttachmentStaging,
  OpenBoundAttachment, applyProjection, AttachmentProjectedLine, and
  ProjectedPath/ProjectedMount fields from AttachmentRef,
  AttachmentDelivery, and AttachmentPlanEntry.
- Drop the scratchpad fallback for old brokers lacking
  Capabilities.AttachmentDelivery (they still emit the
  'Attachment not delivered' line; sibling agents can fetch via
  scion conversation get-message --save-attachments).
- Keep legacy (!ref.artifact) scratchpad staging and attachment_mounts
  intact until #4602 retires AttachmentStore.
- Update affected tests, experiment description, and docs.
@ptone

ptone commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

Merged upstream in GoogleCloudPlatform#5772 (merge commit a74fd6c4). Closing staging PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delivered messages describe one attachment several times (body note, two paths, attachment_mounts); deliver a single ~/.scion/inbox attachment

1 participant